Get depth
GET/bot-gateway-service/api/v3/depth
Provides a market depth snapshot for the specified symbol with the specified depth.
- Default of the limit is 100; max 100.
Request
Query Parameters
- Default 100; max 100.
Symbol string
Symbol of the order book (e.g., XCBETH).
Example: XCBETH
Limit int32
Maximum number of order book levels requested (optional).
Example: 50
Responses
- 200
- 401
Success
- application/json
- Schema
- Example (from schema)
- Example
Schema
- It can be considered as the order book version.
- Example: "bids": [ [ "4.00000000", // PRICE "431.00000000" // QTY ] ]
- Example: "asks": [ [ "4.00000200", // PRICE "12.00000000" // QTY ] ]
lastUpdateId int64
Last update id of the order book (e.g., 1027024).
bids array[]nullable
List of bid prices and quantities.
asks array[]nullable
List of ask prices and quantities.
{
"lastUpdateId": 1027024,
"bids": [
[
0
]
],
"asks": [
[
0
]
]
}
{
"lastUpdateId": 1027024,
"bids": [
[
4,
431
],
[
3,
256
]
],
"asks": [
[
4.000002,
12
],
[
4.000003,
10
],
[
4.000062,
15
]
]
}
Unauthorized
Loading...